function chartFun() {
    return {
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'cross',
                label: {
                    backgroundColor: '#6a7985'
                }
            }
        },
        legend: {
            data: ['邮件营销', '联盟广告', '视频广告', '直接访问', '搜索引擎']
        },
        grid: {
            top:'1%',
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        xAxis: [
            {
                type: 'category',
                boundaryGap: false,
                data: ['2020.01.02', '2020.02.02', '2020.03.02', '2020.04.02', '2020.05.02', '2020.06.02']
            }
        ],
        yAxis: [
            {
                type: 'value',
                "show":false
            }
        ],
        series: [
            {
                type: 'line',
                smooth: true,
                stack: '总量',
                barWidth:'5%', 
                areaStyle: {
                    normal: {
                        color: '#8cd5c2' //改变区域颜色
                        }
                },
                data: [2, 8, 3, 9, 3, 8]
            }
        ]
    }
  }
  
  export default chartFun